package org.s170.entity;

import java.sql.Timestamp;
import java.util.Date;

public class User {
    private int userid ;
    private String password;
    private String username;
    private String sex;
    private String email;
    private String headImg;
    private Timestamp registerTime;

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    public User() {
    }

    public User(String uname) {
        this.username = uname;
    }

    public User(int userid, String password, String username, String sex, String email, String headImg, Timestamp registerTime) {
        this.userid = userid;
        this.password = password;
        this.username = username;
        this.sex = sex;
        this.email = email;
        this.headImg = headImg;
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", sex='" + sex + '\'' +
                ", email='" + email + '\'' +
                ", headImg='" + headImg + '\'' +
                ", registerTime=" + registerTime +
                '}';
    }
}
